package br.com.sipsoft.svola.utils;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SpringUtils implements ApplicationContextAware{

	private static ApplicationContext context;

	@Override
	public void setApplicationContext(ApplicationContext newContext) throws BeansException {
		context = newContext;
	}

	public static Object getBean(String beanName){
		return context.getBean(beanName);
	}
}
